package cn.daniel.goods.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Daniel_li
 * @since 2020-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("goods_sort")
@ApiModel(value="GoodsSort对象", description="Goods的类别实体")
public class GoodsSort implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "闲置物品的类别名称")
    @TableId(value = "sort_id", type = IdType.ID_WORKER_STR)
    private String sortId;

    @ApiModelProperty(value = "类别名称")
    private String title;

    @ApiModelProperty(value = "父级的类别ID")
    private String parentId;

    @ApiModelProperty(value = "排序字段")
    private Integer sort;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;


}
